package service.impl;

import mapper.WorkingMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Working;
import service.WorkingService;

import java.util.List;
@Service
public class WorkingServiceImpl implements WorkingService {
    @Autowired
    private WorkingMapper workingMapper;

    @Override
    public Working select(Integer id) {
        return workingMapper.select(id);
    }

    @Override
    public int add(Working working) {
        return workingMapper.add(working);
    }

    @Override
    public List<Working> list() {
        return workingMapper.list();
    }
}
